<div class="panel-base">
	<?php if (count($data) > 0): 		
			$i=0; ?>
		<?php while ($i < count($data)): ?>				
				<div class="row-fluid">				
			<?php for ($j=0; $j<2; $j++): ?>
				<?php if ($i < count($data)): ?>
						<div class="span6 section-item thumbnail">
							<img src="<?php print $data[$i]['ART_IMG_THUMB']; ?>" />
							<h2 class="title">								
								<a href="<?php print base_url() . 'article/view/' . $data[$i]['ART_CODE']; ?>">
									<?php if ($data[$i]['ART_CAT_ID'] == '1'): ?>
										<span class="label label-success">Review</span>
									<?php endif; ?>
									<?php print $data[$i]['ART_TITLE']; ?>
								</a>
							</h2>							
							<span class="info">By: <b class="author"><?php print $data[$i]['ADM_NAME']; ?></b> - <?php print $data[$i]['ART_DATE']; ?></span>													
							<p><?php print iconv_substr(strip_tags ($data[$i]['ART_TEXT']), 0, 100, 'UTF-8') ?></p>
							
						</div>
				<?php endif; ?>
				<?php $i++; ?>
			<?php endfor; ?>
				</div>
		<?php endwhile; ?>
	<?php endif; ?>
	<div class="pagination">
		<ul>
			<li><a href="<?php print base_url() . 'article?p=1'; ?>">Prev</a></li>
			<?php for ($i=0; $i<$page_count; $i++): ?>
				<li><a href="<?php print base_url() . 'article?p=' . ($i+1) ?>"><?php print $i+1; ?></a></li>
			<?php endfor; ?>
			<li><a href="<?php print base_url() . 'article?p=' . $page_count ?>">Next</a></li>
		</ul>
	</div>
</div>